<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class UserBuyer extends Model
{
    //
    protected $table='user_buyer';
    protected $fillable=[
        'user_id','name','mobile','id_card','id_card_z','id_card_f'
    ];

    /**
     * 新增认证买家
     * @param array $data
     * @return bool
     */
    static  public function   certification($data=[])
    {
        $re = self::create($data);
        if($re){
            return true;
        }
        return false;
    }
}
